package pack0719.com;

import pack0719.com.Person;

//测试单例模式
public class Test {
    public static void main(String[] args) {

        Person p=Person.getInstance();
        Person p1=Person.getInstance();
        p.sing();

        System.out.println(p==p1);
    }
}
